local skill = fk.CreateSkill{
    name = "#ym2__shuncongsiwang_viewas"
}
skill:addEffect("viewas",{
    prompt = "#ym2__shuncongsiwang-ask",
    view_as = function (self, player, cards)
        if player:getHandcardNum() - #cards ~= 1 then return end
        local card = Fk:cloneCard("duel")
        card.skillName = "ym2__shuncongsiwang"
        return card
    end,
    card_filter = function (self, player, to_select, selected)
        if not table.contains(player:getHandlyIds(true), to_select) then return false end
        return player:getHandcardNum() - #selected > 1
    end,
})
return skill